package it_if.ifdemo;

import java.util.Scanner;

public class IfDemo1 {
    public static void main(String[] args) {
        //需求键盘录入女婿酒量,如果大于两斤,老丈人给出回应,反之不回应

        //录入
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入女婿的酒量");
        int wine = sc.nextInt();
        //判断
        if (wine>2){
            System.out.println("小伙子不错!");
        }
    }
}

